<?php /* Smarty version Smarty-3.0.8, created on 2015-10-15 10:47:16
         compiled from "/var/www/html/magroup/admin/tpl/page_index.html" */ ?>
<?php /*%%SmartyHeaderCode:50965172561f13b4ec1351-75734908%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '3e20364404e89407a4d4ab1fbf5f9172ea4481bc' => 
    array (
      0 => '/var/www/html/magroup/admin/tpl/page_index.html',
      1 => 1444876874,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '50965172561f13b4ec1351-75734908',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>

<?php $_template = new Smarty_Internal_Template("tpl/header.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate(); $_template->rendered_content = null;?><?php unset($_template);?>

<link rel="stylesheet" href="kindedit/themes/default/default.css" />
<link rel="stylesheet" href="kindedit/plugins/code/prettify.css" />

<h2 class="ytadmin-h2"><?php echo $_smarty_tpl->getVariable('data_return')->value['update_add'];?>
专题
</h2>
<div class="ytadmin-form-wrap clearfix">
	<form class="form-horizontal" role="form" action="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'page','a'=>'index'),$_smarty_tpl);?>
" method="post">	
		<div class="form-group">
			<label for="title" class="col-sm-1 control-label">标题：</label>
			<div class="col-sm-6">
				<p class="form-control-static"><?php echo $_smarty_tpl->getVariable('data_return')->value['title'];?>
</p>
			</div>
		</div>
		<div class="form-group">
			<label for="add_time" class="col-sm-1 control-label">时间：</label>
			<div class="col-sm-6">
				<input type="text" name="add_time" id="add_time" class="form-control ytadmin-input-mid" placeholder="时间" value="<?php echo $_smarty_tpl->getVariable('data_return')->value['add_time'];?>
"/>
			</div>
		</div>
		<div class="form-group">
			<label for="description" class="col-sm-1 control-label">简述：</label>
			<div class="col-sm-11">
				<textarea name="description" class="form-control" style="width:916px;height:200px;"><?php echo $_smarty_tpl->getVariable('data_return')->value['description'];?>
</textarea>
			</div>
		</div>
		<div class="form-group">
			<label for="content" class="col-sm-1 control-label">内容：</label>
			<div class="col-sm-11">
				<textarea name="content" style="width:916px;height:400px;visibility:hidden;"><?php echo $_smarty_tpl->getVariable('data_return')->value['content'];?>
</textarea>
			</div>
		</div>
		<!--
		<div class="form-group">
			<label for="image" class="col-sm-1 control-label">图片：</label>
			<div class="col-sm-11">			
				<input type="button" class="btn btn-default pull-left" id="image" value="选择图片" />
				<input type="text" id="url" style="width:300px;" class="form-control pull-left" name="img_dir" value="<?php if ($_smarty_tpl->getVariable('data_return')->value['img_dir']){?><?php echo $_smarty_tpl->getVariable('data_return')->value['img_dir'];?>
<?php }?>" />
				<div id="img_show_box" style="width:916px;overflow:scroll;">
					<img id="img_show" src="<?php if ($_smarty_tpl->getVariable('data_return')->value['img_dir']){?><?php echo $_smarty_tpl->getVariable('data_return')->value['img_dir'];?>
<?php }?>" />
				</div>
			</div>
		</div>	
		-->
		<div class="form-group">
			<input type="hidden" name="update_add" value="<?php echo $_smarty_tpl->getVariable('data_return')->value['update_add'];?>
"/>
			<input type="hidden" name="id" value="<?php echo $_smarty_tpl->getVariable('data_return')->value['id'];?>
"/>
			<input type="hidden" name="cat_id" value="<?php echo $_smarty_tpl->getVariable('data_return')->value['cat_id'];?>
"/>
			<div class="col-sm-offset-1 col-sm-11">
				<input type="submit" name="submit" class="btn btn-info" value="<?php echo $_smarty_tpl->getVariable('data_return')->value['update_add'];?>
"/>
			</div>
		</div>
	</form>
</div>

<script charset="utf-8" src="kindedit/kindeditor.js"></script>
<script charset="utf-8" src="kindedit/lang/zh_CN.js"></script>
<script charset="utf-8" src="kindedit/plugins/code/prettify.js"></script>
<script>
	KindEditor.ready(function(K) {
		var editor2 = K.editor({
			allowFileManager : true,
			formatUploadUrl:false,
		});
		K('#image').click(function() {
			editor2.loadPlugin('image', function() {
				editor2.plugin.imageDialog({
					imageUrl : K('#url').val(),
					clickFn : function(url, title, width, height, border, align) {
						K('#url').val(url);
						$('#img_show').attr('src',url);
						editor2.hideDialog();
					}
				});
			});
		});	
			
		var editor1 = K.create('textarea[name="content"]', {
			cssPath : 'kindedit/plugins/code/prettify.css',
			uploadJson : 'kindedit/php/upload_json.php',
			fileManagerJson : 'kindedit/php/file_manager_json.php',
			allowFileManager : true,
			filterMode: false,
			formatUploadUrl:false,
			afterCreate : function() {
				var self = this;
				K.ctrl(document, 13, function() {
					self.sync();
					K('form[name=example]')[0].submit();
				});
				K.ctrl(self.edit.doc, 13, function() {
					self.sync();
					K('form[name=example]')[0].submit();
				});
			}
		});
		var editor3 = K.create('textarea[name="description"]', {
			cssPath : 'kindedit/plugins/code/prettify.css',
			uploadJson : 'kindedit/php/upload_json.php',
			fileManagerJson : 'kindedit/php/file_manager_json.php',
			allowFileManager : true,
			filterMode: false,
			formatUploadUrl:false,
			afterCreate : function() {
				var self = this;
				K.ctrl(document, 13, function() {
					self.sync();
					K('form[name=example]')[0].submit();
				});
				K.ctrl(self.edit.doc, 13, function() {
					self.sync();
					K('form[name=example]')[0].submit();
				});
			}
		});
		prettyPrint();
	});
</script>

<?php $_template = new Smarty_Internal_Template("tpl/footer.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate(); $_template->rendered_content = null;?><?php unset($_template);?>

